import request from '@/utils/request'

// 查询人员车辆列表
export function listCar(query) {
  return request({
    url: '/system/car/list',
    method: 'get',
    params: query
  })
}

// 查询人员车辆详细
export function getCar(carId) {
  return request({
    url: '/system/car/' + carId,
    method: 'get'
  })
}

// 新增人员车辆
export function addCar(data) {
  return request({
    url: '/system/car',
    method: 'post',
    data: data
  })
}

// 修改人员车辆ss
export function updateCar(data) {
  return request({
    url: '/system/car',
    method: 'put',
    data: data
  })
}

// 删除人员车辆
export function delCar(carId) {
  return request({
    url: '/system/car/' + carId,
    method: 'delete'
  })
}

// 导出人员车辆
export function exportCar(query) {
  return request({
    url: '/system/car/export',
    method: 'get',
    params: query
  })
}

// 查询识别车辆列表
export function identifyCarlist(query) {
  return request({
    url: '/system/car/identifyCarlist',
    method: 'get',
    params: query
  })
}

// 查询识别车辆详细
export function getIdentifyCarInfo(carId) {
  return request({
    url: '/system/car/getIdentifyCarInfo/' + carId,
    method: 'get'
  })
}

// 修改识别车辆
export function updateIdentifyCar(data) {
  return request({
    url: '/system/car/updateIdentifyCar',
    method: 'put',
    data: data
  })
}

// 新增人员车辆
export function addBatisCar(data) {
  return request({
    url: '/system/car/addBatisCar',
    method: 'post',
    data: data
  })
}
